num = eval(input("输入一个4位数"))
n1,num = num%10,num//10
print(n1)
n1,num = num%10,num//10
print(n1)
n1,num = num%10,num//10
print(n1)
n1,num = num%10,num//10
print(n1)